package cityrolling.ToolModule;

import data.GameMap;
import data.RoadPoint;

public class SimpleToolController extends ToolController {
	
	public SimpleToolController(ToolEffectSet toolEffectSet) {
		super(toolEffectSet);
	}
	
	@Override
	public void initTools() {
		int count = 0;
		RoadPoint point;
		while (count != toolsCount()) {
			do {
				point = GameMap.getRandomRoadPoint();
			} while(!this.placeEnable(point.x, point.y));
			this.addTool(new Broom(point.x, point.y, toolEffectSet));
			count++;		
		}
	}

	@Override
	protected int toolsCount() {
		return 1;
	}

}
